package pers.qianyu.module.system.exception;

import pers.qianyu.exception.*;

public class SysException extends LambBaseException {
    private static final long serialVersionUID = -5341064970042806996L;
    private final Integer code;

    public SysException(SysErrorCodeEnum errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
